#
# Create the image to analyze the info of user
#

FROM python:3.5

LABEL mantainer="Zhang T, paradoxt(a)gmail.com"

WORKDIR /usr/src/app

COPY . .

RUN echo "*****************" && ls && echo "*****************" \
    && mv sources.list /etc/apt/ \
    && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys  3B4FE6ACC0B21F32 \
    && cat /etc/apt/sources.list && echo "*****************" \
    && apt-get update && apt-get install sl -y

RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple  Jinja2==2.10.1 flask==1.1.1 SQLAlchemy==1.3.5 \
    && pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -U Flask-SQLAlchemy==2.4.0
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple gunicorn==19.9.0 gevent==1.4.0 pymysql==0.9.3


#ENTRYPOINT ["python", ]
